<?php
require_once("../config.php");
$fromwhere=$_SERVER['HTTP_REFERER'];
if(!isset($_GET['id'])) exit("no way");//header("location:$fromwhere");
//if(!isset($_SESSION['admin_user'])) header("location:index.php");
//require_once(CONSTANT."alltype.php");
//page_constant("admin");

$uid=new UID();
$typeid=$_GET['id'];
$condition="id = $typeid";
$uid->delete("alltype",$condition);

header("location:$fromwhere");
?>